var app = sm("do_App");
var page = sm("do_Page");

var root=ui("$");
var helperOpen = require("helper/open");
var aLayout_neiList = ui("aLayout_neiList");
var do_LinearLayout_comList = ui("do_LinearLayout_comList");
root.setMapping({
	"gridNeiShop.items":"gridNeiShop"
});

aLayout_neiList.on("touch", "", 300, function(data, e) {
	helperOpen.open("source://view/qshop/neiShop/main.ui");
});
do_LinearLayout_comList.on("touch", "", 300, function(data, e) {
	helperOpen.open("source://view/qshop/comShop/main.ui");
});

var do_ALayout_sales = ui("do_ALayout_sales");
var do_Label_sales = ui("do_Label_sales");
var do_ALayout_distance = ui("do_ALayout_distance");
var do_Label_distance = ui("do_Label_distance");

//点击销量
do_ALayout_sales.on("touch", "", 300, function(data, e) {
	do_Label_sales.fontColor="FE7E0AFF";//高亮
	do_Label_distance.fontColor="949EAAFF";
	page.fire("discover_neiShop_list_sort", {"sortType":"sales"});
});
//点击距离
do_ALayout_distance.on("touch", "", 300, function(data, e) {
	do_Label_sales.fontColor="949EAAFF";
	do_Label_distance.fontColor="FE7E0AFF";//高亮
	page.fire("discover_neiShop_list_sort", {"sortType":"distance"});
});
